﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace NutriStat
{
    public partial class ImportFormatHeightDialog : NutriDialog
    {
        public ImportFormatHeightDialog()
        {
            InitializeComponent();
        }

        private void ImportFormatHeightDialog_Load(object sender, EventArgs e)
        {

        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            if (radioButtonCM.Checked)
                result = MeasurementUnits.Centimeter.Abbreviation;
            else if (radioButtonIN.Checked)
                result = MeasurementUnits.Inch.Abbreviation;
            else
                return;

            this.Close();
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
